FMI Ticket System
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
HallService.h
Go to the documentation of this file.
1#ifndef HEADER_SERVICES_HALLSERVICE
2#define HEADER_SERVICES_HALLSERVICE
3
8#include "../Generic/List/OrderedList.hpp"
9#include "../Models/Hall.h"
10#include "StatusCode.h"
11
16
17public:
19 HallService(const Hall* halls, unsigned hallCount);
20
22 const OrderedList<Hall>& get_halls() const;
23
28};
29
30#endif
Stores declaration of enum StatusCode.
StatusCode
Used for communication between Services and what uses them.
Definition: StatusCode.h:14
Each HallService stores all halls.
Definition: HallService.h:14
StatusCode save()
Saves Halls to a database file.
Definition: HallService.cpp:34
HallService(const Hall *halls, unsigned hallCount)
Copies halls from parameters.
Definition: HallService.cpp:4
const OrderedList< Hall > & get_halls() const
Returns a constant reference to halls.
Definition: HallService.cpp:8
StatusCode load()
Loads Halls to a database file.
Definition: HallService.cpp:18
Each hall contains a number, rows and seats per row.
Definition: Hall.h:13